The value of h is the difference between the height at rest and the height at the top of the swing. The height at the top of the swing is given by the length times the cosine of the angle, so h is given by
With this value for h, a value for the maximum speed can be found: